package org.example.transation;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/tran")
public class SpringTransactionController {

    @Autowired
    SpringTransactionA springTransaction;

    @GetMapping("/add")
    public String string(){
        springTransaction.aMethod();
        return "添加成功";
    }
}
